var webpack = require('webpack');
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js');
module.exports = {
plugins: [commonsPlugin],
entry: {	index : './src/js/index.js'},
output: {	path: 'dist/js',	filename: '[name].js'},
resolve: { extensions: ['', '.js', '.jsx']},
module: {
    loaders: [{
        test: /\.js$/,
        loader: 'babel-loader'
    }, {
        test: /\.jsx$/,
        loader: 'babel-loader!jsx-loader?harmony'
    }, {
        test:/\.(png|jpg)$/,
        loader: 'url-loader?limit=8192'
    }]
},
    devtool:'source-map'
};
